use std::io::{Result};

use super::cpblock::CPBlock;
use super::head::Headed;
use super::raw::Raw;

#[derive(Debug)]
pub struct NilBlock {}
impl Headed for NilBlock {
    type ehead = NilBlock;
}

pub fn get_mem(block: &CPBlock<NilBlock>,off :usize) -> Raw {
    match &block.data {
        None => Raw::default(),
        Some(mr) => mr.offset_to_raw(off),
    }
}

